-- GENERATED SPELL FOR [Dark Strand Adept] --


function spell0_3728(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3728', 3000, 1)
end

function spell1_3728(pUnit, Event) --@Summon Voidwalker,Self--
pUnit:FullCastSpellOnTarget(12746,pUnit)
pUnit:RegisterEvent('Sorts_3728', 609, 1)
end

function Sorts_3728(pUnit, Event)
local choix_sorts_3728 = math.random(0, 1)
if choix_sorts_3728 == 0 then
pUnit:RegisterEvent('spell0_3728', 1, 1)
end
if choix_sorts_3728 == 1 then
pUnit:RegisterEvent('spell1_3728', 1, 1)
end
end

function mob3728_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3728', math.random(1500, 3000), 1)
end

function mob3728_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3728_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3728_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3728, 1, 'mob3728_Action')
RegisterUnitEvent(3728, 2, 'mob3728_Leave')
RegisterUnitEvent(3728, 3, 'mob3728_Kill')
RegisterUnitEvent(3728, 4, 'mob3728_Die')
